﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ilanver.Data.NHibernate.Abstraction;
using ilanver.Data.NHibernate.Attributes;
using ilanver.Data.NHibernate.Statics;

namespace ilanver.Data.NHibernate
{
    public class DefaultSessionFactoryKeyProvider : ISessionFactoryKeyProvider
    {
        public string GetKey()
        {
            return NHibernateSession.DefaultFactoryKey;
        }

        public string GetKeyFrom(object anObject)
        {
            return SessionFactoryAttribute.GetKeyFrom(anObject);
        }
    }
}
